package com.castle.fortress.admin.orders.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.orders.entity.GoodsOrderItemEntity;
import java.util.Map;
import java.util.List;
/**
 * 订单详情Mapper 接口
 *
 * @author Mgg
 * @since 2023-01-13
 */
public interface GoodsOrderItemMapper extends BaseMapper<GoodsOrderItemEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param goodsOrderItemEntity
    * @return
    */
    List<GoodsOrderItemEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("goodsOrderItemEntity") GoodsOrderItemEntity goodsOrderItemEntity);

    /**
    * 扩展信息记录总数
    * @param goodsOrderItemEntity
    * @return
    */
    Long extendsCount(@Param("goodsOrderItemEntity") GoodsOrderItemEntity goodsOrderItemEntity);

    /**
    * 订单详情扩展详情
    * @param id 订单详情id
    * @return
    */
    GoodsOrderItemEntity getByIdExtends(@Param("id")Long id);



}
